package server.application;

import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;

import remote.calculator.*;


public class ServerApp {

	public static void main(String... args) {
		try {
			LocateRegistry.createRegistry(Registry.REGISTRY_PORT);
			Registry reg = LocateRegistry.getRegistry();
			reg.rebind("Calculator", new NormalCalculator());
		}

		catch (RemoteException ex) {
			System.out.println(ex.getMessage());
		}
	}

}
